package com.test;

import com.qf.web.userServletInterface;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName testAOP
 * @Author xiao宋
 * @Date 15:21  2022/9/27
 * @Version 1.0
 * @Description TODO
 */
public class testAOP {
    @Test
    public void test1() {
        ClassPathXmlApplicationContext ac =
                new ClassPathXmlApplicationContext(
                        "applicationContext.xml"
                );
        userServletInterface userServlet = (userServletInterface) ac.getBean("userServlet");

        userServlet.delete();
        userServlet.find();
        userServlet.update();
        userServlet.save();

        ac.close();
    }
}
